/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package org.workforce.common.tags;

import javax.servlet.jsp.JspException;
import javax.servlet.jsp.JspWriter;
import javax.servlet.jsp.tagext.TagSupport;

/**
 *
 * @author neo
 */
public class FieldFileTag extends TagSupport {
    private String name;
    @Override
    public int doStartTag() throws JspException {
        JspWriter out = pageContext.getOut();
        try {
        out.print("<input type=\"file\" name=\""+ name +"\">");
        } catch(Exception ex) { ex.printStackTrace(); }
        return super.doStartTag();
    }

    @Override
    public int doEndTag() throws JspException {
        return super.doEndTag();
    }

    public void setName(String name) {
        this.name = name;
    }
    

}
